home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / event.d / rc4 < prev    next >
Text File  |  2008-09-29  |  403b  |  21 lines

  1. # rc4 - runlevel 4 compatibility
  2. #
  3. # This task runs the old sysv-rc runlevel 4 (user defined) scripts.  It
  4. # is usually started by the telinit compatibility wrapper.
  5.  
  6. start on runlevel 4
  7.  
  8. stop on runlevel [!4]
  9.  
  10. console output
  11. script
  12.     set $(runlevel --set 4 || true)
  13.     if [ "$1" != "unknown" ]; then
  14.         PREVLEVEL=$1
  15.         RUNLEVEL=$2
  16.         export PREVLEVEL RUNLEVEL
  17.     fi
  18.  
  19.     exec /etc/init.d/rc 4
  20. end script
  21.